<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./lib/axios.js"></script>
</head>
<body>
<script type="module">

    // import axios from './模拟axios.js';

    axios({
        url: 'http://shenxiaoxu.com:3000/scoreList',
        cancelToken : new axios.CancelToken((cancel)=>{btnCancel = cancel})
    }).then(value=>{
        console.log(value);
    })

    axios.interceptors.request.use(function (config){
        console.log('请求拦截成功1')
    },function (reason){
        console.log('请求拦截失败1')
    });
    axios.interceptors.request.use(function (config){
        console.log('请求拦截成功2')
    },function (reason){
        console.log('请求拦截失败2')
    });
</script>
</body>
</html>